package adv6;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class ClsTest3 {
    public static List getType(int type){
        if(type==2){
            return new LinkedList();
        }
        if(type==3){
            return new Vector();
        }else if(type==4){
            return new Stack();
        }
        return new ArrayList();
    }

    public static void main(String[] args) {
        List list = getType(1);
        System.out.println("具体的类的类型：：：");
        System.out.println(list.getClass());
    }
}
